package com.zixi.beverage_order.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.File;

@Controller
public class Test {
    @PostMapping("/test")
    @ResponseBody
    public String test(
            @RequestParam("file") File file,
                       @RequestParam("text") String text
    ) {
        System.out.println(text);
        System.out.println(file);
        return "OK!";
    }


}
